package org.ling.xuan.entity.row;

import org.ling.xuan.entity.mo.ProjectSetting;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ProjectSettingRowMapper implements RowMapper<ProjectSetting> {

    public static ProjectSettingRowMapper INSTANCE = new ProjectSettingRowMapper();

    private ProjectSettingRowMapper() {
    }


    @Override
    public ProjectSetting mapRow(ResultSet resultSet, int rowNum) throws SQLException {
        BeanPropertyRowMapper<ProjectSetting> rowMapper = new BeanPropertyRowMapper<>(ProjectSetting.class);
        return rowMapper.mapRow(resultSet, rowNum);
    }
}

